package com.iv.durian.cloud.service;

import com.iv.durian.cloud.RandomCode;
import com.iv.durian.cloud.dao.RandomCodeDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RandomCodeService  {

    @Autowired
    private RandomCodeDao randomCodeDao;

    public RandomCode get(String key){
        return randomCodeDao.get(key);
    }

    public int add( RandomCode randomCode){
        return randomCodeDao.add(randomCode);
    }

    public int update(String key,String code){
        return randomCodeDao.update(key,code);
    }
}
